﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AssetManagementSystem.Utils {
    class SortObject : IComparable<SortObject> {

        int weight;
        Object theObject;

        public SortObject(int weight, Object theObject) {
            this.weight = weight;
            this.theObject = theObject;
        }

        public Object TheObject {
            get { return theObject; }
        }

        public int CompareTo(SortObject other) {
            return other.weight - weight;
        }

    }
}
